package com.qd.panda.model;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


/**
 * 商品介绍
 *
 * @author sjk
 */
@Getter
@Setter
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("panda_product_detail")
public class ProductDetail extends Model<ProductDetail> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "product_code", type = IdType.ASSIGN_ID)
    private String productCode;
    /**
     * 商品详情介绍
     */
    @TableField("detail")
    private String detail;

    public void freeData() {
        this.productCode = null;
        this.detail = null;
    }

}
